package com.woowc.cn.config.mb;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

/**
 * @version V1.0.0
 * @ClassName: {@link BatchInsetSqlInjector}
 * @Description: BatchInsetSqlInjector
 * @author: Lanzhou
 * @date: 2021/6/25 10:15
 * @Copyright:2020 All rights reserved.
 */
public class BatchInsetSqlInjector extends DefaultSqlInjector {

    /**
     * 获取方法列表
     * @param mapperClass 映射类
     * @return
     */
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new BatchInsert());
        return methodList;
    }
}
